<?php
/**
 * Author: Long Doan
 * Date: 4/15/11 12:08 PM
 */
require_once("../../../../wp-config.php");

if (!wp_verify_nonce($_POST['nonce'], 'wv_word_spinner')) die('Busted');

global $wv;

$sample_text = run_spinner(stripslashes($_POST['query']));

printf("Number of possible Text: %s <br/>", $wv->possible_texts);
printf("Sample Text: <br/> %s", $sample_text);

?>